package cn.huapu.power.energy.ex;

/**
 * @author jzx
 * @title: ErrorCodesException
 * @projectName energy
 * @description: TODO 登录异常code
 * @date 2019-5-2416:28
 */
public class ErrorCodesException extends RuntimeException{

    //数据异常
    public static final int DATA_ERR=500;
    //登录异常
    public static final int LOGIN_ERR=501;
    //python调用异常
    public static final int PYTHON=502;
    //图片转换报错
    public static final int IMG=503;
    //文件下载报错
    public static final int FILE=504;
    //注册异常
    public static final int REG_ERR=505;

    private int code = LOGIN_ERR;
    public ErrorCodesException(){
        super();
    }
    public ErrorCodesException(String msg){
        super(msg);
    }
    public ErrorCodesException(String msg,int code){
        super(msg);
        this.code = code;
    }
    public int getCode(){
        return code;
    }


}
